<%=render :partial => "/frame_top" %>
<h1 class="title_header"><%=t (@event.new_record? ? "event.new" : "event.edit" + ": " + @event.name) %></h1>
<a name="#top_event_form"></a>
<% form_for :event, :html => { :multipart => true, :id => "event_form", :class => "core_form" }, 
	:url => (@event.new_record? ? "/events/create" : "/events/update/#{params[:id]}") do |event_form| -%>
	<table>
		<tr>
			<td class="label_cell_form"></td>
			<td class="label_input_form"><%= error_messages_for :event %></td>
		</tr>
		<%=render :partial => "fields", :object => event_form %>
		<tr>
			<td class="label_cell_form"></td>
			<td class="label_input_form">
				<%= submit_tag I18n.t(@event.new_record? ? 'event.new_button' : 'event.edit_button'), 
						:class => "button_form", :id => "event_submit" %>
			</td>
		</tr>
	</table>
<% end %>
<%=render :partial => "/frame_bottom" %>		
<div id="modal_place_div" class="modal_form" title="new venue">
	<%= render :partial => "/cores/ajax_form", :object => { :core => @place, :core_name => "place" }%>
</div>
<div id="modal_human_div" class="modal_form" title="new artist">
	<%= render :partial => "/cores/ajax_form", :object => { :core => @human, :core_name => "human" }%>
	<%# render :partial => "/humans/ajax_form"%>
</div>
<script type="text/javascript">connectEventFields();</script>
